package com.wanda.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wanda.dao.Wd_UserDAO;
import com.wanda.model.User_Role_OrganizationModel;
import com.wanda.model.Wd_UserModel;
import com.wanda.service.Wd_UserService;
@Service
public class Wd_UserServiceImpl implements Wd_UserService {
	
	@Autowired	
	private Wd_UserDAO wd_UserDAO;

	public Wd_UserModel selectLogin(Wd_UserModel wd_UserModel) {
		// TODO Auto-generated method stub
		return wd_UserDAO.selectLogin(wd_UserModel);
	}

	public List<Wd_UserModel> selectByOrganization(String Organization_id) {
		// TODO Auto-generated method stub
		return wd_UserDAO.selectByOrganization(Organization_id);
	}

	public List<Wd_UserModel> selectBySql(String SearchSql) {
		// TODO Auto-generated method stub
		return wd_UserDAO.selectBySql(SearchSql);
	}

	public List<User_Role_OrganizationModel> selectuserAll() {
		// TODO Auto-generated method stub
		return wd_UserDAO.selectuserAll();
	}

	public int addUser(Wd_UserModel wd_UserModel) {
		// TODO Auto-generated method stub
		return wd_UserDAO.addUser(wd_UserModel);
	}

	public int deleteUser(String id) {
		// TODO Auto-generated method stub
		return wd_UserDAO.deleteUser(id);
	}

	public Wd_UserModel selectById(String id) {
		// TODO Auto-generated method stub
		return wd_UserDAO.selectById(id);
	}

	public int updateUser(Wd_UserModel wd_UserModel) {
		// TODO Auto-generated method stub
		return wd_UserDAO.updateUser(wd_UserModel);
	}

	

}
